package cn.bugstack.mybatis.builder;

import cn.bugstack.mybatis.session.Configuration;
import cn.bugstack.mybatis.type.TypeAliasRegistry;

public abstract class BaseBuilder {

    /**
     * 全局唯一的配置
     */
    protected final Configuration configuration;


    protected final TypeAliasRegistry typeAliasRegistry ;


    public BaseBuilder(Configuration configuration) {
        this.configuration = configuration;
        this.typeAliasRegistry = configuration.getTypeAliasRegistry();
    }

    public Configuration getConfiguration() {
        return configuration;
    }
}
